import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/double_control/get_risk_object_by_id_entity.dart';

GetRiskObjectByIdEntity $GetRiskObjectByIdEntityFromJson(Map<String, dynamic> json) {
  final GetRiskObjectByIdEntity getRiskObjectByIdEntity = GetRiskObjectByIdEntity();
  final String? activationTime = jsonConvert.convert<String>(json['activationTime']);
  if (activationTime != null) {
    getRiskObjectByIdEntity.activationTime = activationTime;
  }
  final String? address = jsonConvert.convert<String>(json['address']);
  if (address != null) {
    getRiskObjectByIdEntity.address = address;
  }
  final int? checkType = jsonConvert.convert<int>(json['checkType']);
  if (checkType != null) {
    getRiskObjectByIdEntity.checkType = checkType;
  }
  final List<GetRiskObjectByIdChildren>? children = (json['children'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<GetRiskObjectByIdChildren>(e) as GetRiskObjectByIdChildren).toList();
  if (children != null) {
    getRiskObjectByIdEntity.children = children;
  }
  final int? closestDistance = jsonConvert.convert<int>(json['closestDistance']);
  if (closestDistance != null) {
    getRiskObjectByIdEntity.closestDistance = closestDistance;
  }
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    getRiskObjectByIdEntity.companyCode = companyCode;
  }
  final String? controlHead = jsonConvert.convert<String>(json['controlHead']);
  if (controlHead != null) {
    getRiskObjectByIdEntity.controlHead = controlHead;
  }
  final String? controlHeadPhone = jsonConvert.convert<String>(json['controlHeadPhone']);
  if (controlHeadPhone != null) {
    getRiskObjectByIdEntity.controlHeadPhone = controlHeadPhone;
  }
  final String? controlHeadPosition = jsonConvert.convert<String>(json['controlHeadPosition']);
  if (controlHeadPosition != null) {
    getRiskObjectByIdEntity.controlHeadPosition = controlHeadPosition;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    getRiskObjectByIdEntity.createBy = createBy;
  }
  final String? createById = jsonConvert.convert<String>(json['createById']);
  if (createById != null) {
    getRiskObjectByIdEntity.createById = createById;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    getRiskObjectByIdEntity.createDate = createDate;
  }
  final String? deleted = jsonConvert.convert<String>(json['deleted']);
  if (deleted != null) {
    getRiskObjectByIdEntity.deleted = deleted;
  }
  final String? description = jsonConvert.convert<String>(json['description']);
  if (description != null) {
    getRiskObjectByIdEntity.description = description;
  }
  final String? deviceAreaHazards = jsonConvert.convert<String>(json['deviceAreaHazards']);
  if (deviceAreaHazards != null) {
    getRiskObjectByIdEntity.deviceAreaHazards = deviceAreaHazards;
  }
  final String? deviceId = jsonConvert.convert<String>(json['deviceId']);
  if (deviceId != null) {
    getRiskObjectByIdEntity.deviceId = deviceId;
  }
  final List<GetRiskObjectByIdEquipVOList>? equipVOList = (json['equipVOList'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<GetRiskObjectByIdEquipVOList>(e) as GetRiskObjectByIdEquipVOList).toList();
  if (equipVOList != null) {
    getRiskObjectByIdEntity.equipVOList = equipVOList;
  }
  final int? existDanger = jsonConvert.convert<int>(json['existDanger']);
  if (existDanger != null) {
    getRiskObjectByIdEntity.existDanger = existDanger;
  }
  final int? existHomework = jsonConvert.convert<int>(json['existHomework']);
  if (existHomework != null) {
    getRiskObjectByIdEntity.existHomework = existHomework;
  }
  final String? hazardCode = jsonConvert.convert<String>(json['hazardCode']);
  if (hazardCode != null) {
    getRiskObjectByIdEntity.hazardCode = hazardCode;
  }
  final String? hazardDep = jsonConvert.convert<String>(json['hazardDep']);
  if (hazardDep != null) {
    getRiskObjectByIdEntity.hazardDep = hazardDep;
  }
  final String? hazardDepId = jsonConvert.convert<String>(json['hazardDepId']);
  if (hazardDepId != null) {
    getRiskObjectByIdEntity.hazardDepId = hazardDepId;
  }
  final String? hazardDistinguishDep = jsonConvert.convert<String>(json['hazardDistinguishDep']);
  if (hazardDistinguishDep != null) {
    getRiskObjectByIdEntity.hazardDistinguishDep = hazardDistinguishDep;
  }
  final String? hazardDistinguishDepId = jsonConvert.convert<String>(json['hazardDistinguishDepId']);
  if (hazardDistinguishDepId != null) {
    getRiskObjectByIdEntity.hazardDistinguishDepId = hazardDistinguishDepId;
  }
  final String? hazardDistinguishPerson = jsonConvert.convert<String>(json['hazardDistinguishPerson']);
  if (hazardDistinguishPerson != null) {
    getRiskObjectByIdEntity.hazardDistinguishPerson = hazardDistinguishPerson;
  }
  final String? hazardDistinguishPersonId = jsonConvert.convert<String>(json['hazardDistinguishPersonId']);
  if (hazardDistinguishPersonId != null) {
    getRiskObjectByIdEntity.hazardDistinguishPersonId = hazardDistinguishPersonId;
  }
  final String? hazardLiablePerson = jsonConvert.convert<String>(json['hazardLiablePerson']);
  if (hazardLiablePerson != null) {
    getRiskObjectByIdEntity.hazardLiablePerson = hazardLiablePerson;
  }
  final String? hazardLiablePersonId = jsonConvert.convert<String>(json['hazardLiablePersonId']);
  if (hazardLiablePersonId != null) {
    getRiskObjectByIdEntity.hazardLiablePersonId = hazardLiablePersonId;
  }
  final String? hazardRank = jsonConvert.convert<String>(json['hazardRank']);
  if (hazardRank != null) {
    getRiskObjectByIdEntity.hazardRank = hazardRank;
  }
  final String? hazardType = jsonConvert.convert<String>(json['hazardType']);
  if (hazardType != null) {
    getRiskObjectByIdEntity.hazardType = hazardType;
  }
  final String? deviceName = jsonConvert.convert<String>(json['deviceName']);
  if (deviceName != null) {
    getRiskObjectByIdEntity.deviceName = deviceName;
  }
  final String? associatedProductionLine = jsonConvert.convert<String>(json['associatedProductionLine']);
  if (associatedProductionLine != null) {
    getRiskObjectByIdEntity.associatedProductionLine = associatedProductionLine;
  }
  final String? hazardTypeName = jsonConvert.convert<String>(json['hazardTypeName']);
  if (hazardTypeName != null) {
    getRiskObjectByIdEntity.hazardTypeName = hazardTypeName;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    getRiskObjectByIdEntity.id = id;
  }
  final int? inChemicalIndustrialPark = jsonConvert.convert<int>(json['inChemicalIndustrialPark']);
  if (inChemicalIndustrialPark != null) {
    getRiskObjectByIdEntity.inChemicalIndustrialPark = inChemicalIndustrialPark;
  }
  final int? isKeynote = jsonConvert.convert<int>(json['isKeynote']);
  if (isKeynote != null) {
    getRiskObjectByIdEntity.isKeynote = isKeynote;
  }
  final String? keyProcessesId = jsonConvert.convert<String>(json['keyProcessesId']);
  if (keyProcessesId != null) {
    getRiskObjectByIdEntity.keyProcessesId = keyProcessesId;
  }
  final String? keyProcessesName = jsonConvert.convert<String>(json['keyProcessesName']);
  if (keyProcessesName != null) {
    getRiskObjectByIdEntity.keyProcessesName = keyProcessesName;
  }
  final String? latitude = jsonConvert.convert<String>(json['latitude']);
  if (latitude != null) {
    getRiskObjectByIdEntity.latitude = latitude;
  }
  final int? level = jsonConvert.convert<int>(json['level']);
  if (level != null) {
    getRiskObjectByIdEntity.level = level;
  }
  final String? longitude = jsonConvert.convert<String>(json['longitude']);
  if (longitude != null) {
    getRiskObjectByIdEntity.longitude = longitude;
  }
  final String? mainHead = jsonConvert.convert<String>(json['mainHead']);
  if (mainHead != null) {
    getRiskObjectByIdEntity.mainHead = mainHead;
  }
  final String? mainHeadPhone = jsonConvert.convert<String>(json['mainHeadPhone']);
  if (mainHeadPhone != null) {
    getRiskObjectByIdEntity.mainHeadPhone = mainHeadPhone;
  }
  final String? mainHeadPosition = jsonConvert.convert<String>(json['mainHeadPosition']);
  if (mainHeadPosition != null) {
    getRiskObjectByIdEntity.mainHeadPosition = mainHeadPosition;
  }
  final int? numberEstimation = jsonConvert.convert<int>(json['numberEstimation']);
  if (numberEstimation != null) {
    getRiskObjectByIdEntity.numberEstimation = numberEstimation;
  }
  final List<GetRiskObjectByIdObjectChildren>? objectChildren = (json['objectChildren'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<GetRiskObjectByIdObjectChildren>(e) as GetRiskObjectByIdObjectChildren).toList();
  if (objectChildren != null) {
    getRiskObjectByIdEntity.objectChildren = objectChildren;
  }
  final String? objectRange = jsonConvert.convert<String>(json['objectRange']);
  if (objectRange != null) {
    getRiskObjectByIdEntity.objectRange = objectRange;
  }
  final String? parkName = jsonConvert.convert<String>(json['parkName']);
  if (parkName != null) {
    getRiskObjectByIdEntity.parkName = parkName;
  }
  final String? productionCapacity = jsonConvert.convert<String>(json['productionCapacity']);
  if (productionCapacity != null) {
    getRiskObjectByIdEntity.productionCapacity = productionCapacity;
  }
  final String? riskObjectName = jsonConvert.convert<String>(json['riskObjectName']);
  if (riskObjectName != null) {
    getRiskObjectByIdEntity.riskObjectName = riskObjectName;
  }
  final String? rvalue = jsonConvert.convert<String>(json['rvalue']);
  if (rvalue != null) {
    getRiskObjectByIdEntity.rvalue = rvalue;
  }
  final int? status = jsonConvert.convert<int>(json['status']);
  if (status != null) {
    getRiskObjectByIdEntity.status = status;
  }
  final String? tecHead = jsonConvert.convert<String>(json['tecHead']);
  if (tecHead != null) {
    getRiskObjectByIdEntity.tecHead = tecHead;
  }
  final String? tecHeadPhone = jsonConvert.convert<String>(json['tecHeadPhone']);
  if (tecHeadPhone != null) {
    getRiskObjectByIdEntity.tecHeadPhone = tecHeadPhone;
  }
  final String? tecHeadPosition = jsonConvert.convert<String>(json['tecHeadPosition']);
  if (tecHeadPosition != null) {
    getRiskObjectByIdEntity.tecHeadPosition = tecHeadPosition;
  }
  final int? thereIsAnAlarmPresent = jsonConvert.convert<int>(json['thereIsAnAlarmPresent']);
  if (thereIsAnAlarmPresent != null) {
    getRiskObjectByIdEntity.thereIsAnAlarmPresent = thereIsAnAlarmPresent;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    getRiskObjectByIdEntity.updateBy = updateBy;
  }
  final String? updateById = jsonConvert.convert<String>(json['updateById']);
  if (updateById != null) {
    getRiskObjectByIdEntity.updateById = updateById;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    getRiskObjectByIdEntity.updateDate = updateDate;
  }
  final String? workType = jsonConvert.convert<String>(json['workType']);
  if (workType != null) {
    getRiskObjectByIdEntity.workType = workType;
  }
  return getRiskObjectByIdEntity;
}

Map<String, dynamic> $GetRiskObjectByIdEntityToJson(GetRiskObjectByIdEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['activationTime'] = entity.activationTime;
  data['address'] = entity.address;
  data['checkType'] = entity.checkType;
  data['children'] = entity.children?.map((v) => v.toJson()).toList();
  data['closestDistance'] = entity.closestDistance;
  data['companyCode'] = entity.companyCode;
  data['controlHead'] = entity.controlHead;
  data['controlHeadPhone'] = entity.controlHeadPhone;
  data['controlHeadPosition'] = entity.controlHeadPosition;
  data['createBy'] = entity.createBy;
  data['createById'] = entity.createById;
  data['createDate'] = entity.createDate;
  data['deleted'] = entity.deleted;
  data['description'] = entity.description;
  data['deviceAreaHazards'] = entity.deviceAreaHazards;
  data['deviceId'] = entity.deviceId;
  data['equipVOList'] = entity.equipVOList?.map((v) => v.toJson()).toList();
  data['existDanger'] = entity.existDanger;
  data['existHomework'] = entity.existHomework;
  data['hazardCode'] = entity.hazardCode;
  data['hazardDep'] = entity.hazardDep;
  data['hazardDepId'] = entity.hazardDepId;
  data['hazardDistinguishDep'] = entity.hazardDistinguishDep;
  data['hazardDistinguishDepId'] = entity.hazardDistinguishDepId;
  data['hazardDistinguishPerson'] = entity.hazardDistinguishPerson;
  data['hazardDistinguishPersonId'] = entity.hazardDistinguishPersonId;
  data['hazardLiablePerson'] = entity.hazardLiablePerson;
  data['hazardLiablePersonId'] = entity.hazardLiablePersonId;
  data['hazardRank'] = entity.hazardRank;
  data['hazardType'] = entity.hazardType;
  data['deviceName'] = entity.deviceName;
  data['associatedProductionLine'] = entity.associatedProductionLine;
  data['hazardTypeName'] = entity.hazardTypeName;
  data['id'] = entity.id;
  data['inChemicalIndustrialPark'] = entity.inChemicalIndustrialPark;
  data['isKeynote'] = entity.isKeynote;
  data['keyProcessesId'] = entity.keyProcessesId;
  data['keyProcessesName'] = entity.keyProcessesName;
  data['latitude'] = entity.latitude;
  data['level'] = entity.level;
  data['longitude'] = entity.longitude;
  data['mainHead'] = entity.mainHead;
  data['mainHeadPhone'] = entity.mainHeadPhone;
  data['mainHeadPosition'] = entity.mainHeadPosition;
  data['numberEstimation'] = entity.numberEstimation;
  data['objectChildren'] = entity.objectChildren?.map((v) => v.toJson()).toList();
  data['objectRange'] = entity.objectRange;
  data['parkName'] = entity.parkName;
  data['productionCapacity'] = entity.productionCapacity;
  data['riskObjectName'] = entity.riskObjectName;
  data['rvalue'] = entity.rvalue;
  data['status'] = entity.status;
  data['tecHead'] = entity.tecHead;
  data['tecHeadPhone'] = entity.tecHeadPhone;
  data['tecHeadPosition'] = entity.tecHeadPosition;
  data['thereIsAnAlarmPresent'] = entity.thereIsAnAlarmPresent;
  data['updateBy'] = entity.updateBy;
  data['updateById'] = entity.updateById;
  data['updateDate'] = entity.updateDate;
  data['workType'] = entity.workType;
  return data;
}

extension GetRiskObjectByIdEntityExtension on GetRiskObjectByIdEntity {
  GetRiskObjectByIdEntity copyWith({
    String? activationTime,
    String? address,
    int? checkType,
    List<GetRiskObjectByIdChildren>? children,
    int? closestDistance,
    String? companyCode,
    String? controlHead,
    String? controlHeadPhone,
    String? controlHeadPosition,
    String? createBy,
    String? createById,
    String? createDate,
    String? deleted,
    String? description,
    String? deviceAreaHazards,
    String? deviceId,
    List<GetRiskObjectByIdEquipVOList>? equipVOList,
    int? existDanger,
    int? existHomework,
    String? hazardCode,
    String? hazardDep,
    String? hazardDepId,
    String? hazardDistinguishDep,
    String? hazardDistinguishDepId,
    String? hazardDistinguishPerson,
    String? hazardDistinguishPersonId,
    String? hazardLiablePerson,
    String? hazardLiablePersonId,
    String? hazardRank,
    String? hazardType,
    String? deviceName,
    String? associatedProductionLine,
    String? hazardTypeName,
    String? id,
    int? inChemicalIndustrialPark,
    int? isKeynote,
    String? keyProcessesId,
    String? keyProcessesName,
    String? latitude,
    int? level,
    String? longitude,
    String? mainHead,
    String? mainHeadPhone,
    String? mainHeadPosition,
    int? numberEstimation,
    List<GetRiskObjectByIdObjectChildren>? objectChildren,
    String? objectRange,
    String? parkName,
    String? productionCapacity,
    String? riskObjectName,
    String? rvalue,
    int? status,
    String? tecHead,
    String? tecHeadPhone,
    String? tecHeadPosition,
    int? thereIsAnAlarmPresent,
    String? updateBy,
    String? updateById,
    String? updateDate,
    String? workType,
  }) {
    return GetRiskObjectByIdEntity()
      ..activationTime = activationTime ?? this.activationTime
      ..address = address ?? this.address
      ..checkType = checkType ?? this.checkType
      ..children = children ?? this.children
      ..closestDistance = closestDistance ?? this.closestDistance
      ..companyCode = companyCode ?? this.companyCode
      ..controlHead = controlHead ?? this.controlHead
      ..controlHeadPhone = controlHeadPhone ?? this.controlHeadPhone
      ..controlHeadPosition = controlHeadPosition ?? this.controlHeadPosition
      ..createBy = createBy ?? this.createBy
      ..createById = createById ?? this.createById
      ..createDate = createDate ?? this.createDate
      ..deleted = deleted ?? this.deleted
      ..description = description ?? this.description
      ..deviceAreaHazards = deviceAreaHazards ?? this.deviceAreaHazards
      ..deviceId = deviceId ?? this.deviceId
      ..equipVOList = equipVOList ?? this.equipVOList
      ..existDanger = existDanger ?? this.existDanger
      ..existHomework = existHomework ?? this.existHomework
      ..hazardCode = hazardCode ?? this.hazardCode
      ..hazardDep = hazardDep ?? this.hazardDep
      ..hazardDepId = hazardDepId ?? this.hazardDepId
      ..hazardDistinguishDep = hazardDistinguishDep ?? this.hazardDistinguishDep
      ..hazardDistinguishDepId = hazardDistinguishDepId ?? this.hazardDistinguishDepId
      ..hazardDistinguishPerson = hazardDistinguishPerson ?? this.hazardDistinguishPerson
      ..hazardDistinguishPersonId = hazardDistinguishPersonId ?? this.hazardDistinguishPersonId
      ..hazardLiablePerson = hazardLiablePerson ?? this.hazardLiablePerson
      ..hazardLiablePersonId = hazardLiablePersonId ?? this.hazardLiablePersonId
      ..hazardRank = hazardRank ?? this.hazardRank
      ..hazardType = hazardType ?? this.hazardType
      ..deviceName = deviceName ?? this.deviceName
      ..associatedProductionLine = associatedProductionLine ?? this.associatedProductionLine
      ..hazardTypeName = hazardTypeName ?? this.hazardTypeName
      ..id = id ?? this.id
      ..inChemicalIndustrialPark = inChemicalIndustrialPark ?? this.inChemicalIndustrialPark
      ..isKeynote = isKeynote ?? this.isKeynote
      ..keyProcessesId = keyProcessesId ?? this.keyProcessesId
      ..keyProcessesName = keyProcessesName ?? this.keyProcessesName
      ..latitude = latitude ?? this.latitude
      ..level = level ?? this.level
      ..longitude = longitude ?? this.longitude
      ..mainHead = mainHead ?? this.mainHead
      ..mainHeadPhone = mainHeadPhone ?? this.mainHeadPhone
      ..mainHeadPosition = mainHeadPosition ?? this.mainHeadPosition
      ..numberEstimation = numberEstimation ?? this.numberEstimation
      ..objectChildren = objectChildren ?? this.objectChildren
      ..objectRange = objectRange ?? this.objectRange
      ..parkName = parkName ?? this.parkName
      ..productionCapacity = productionCapacity ?? this.productionCapacity
      ..riskObjectName = riskObjectName ?? this.riskObjectName
      ..rvalue = rvalue ?? this.rvalue
      ..status = status ?? this.status
      ..tecHead = tecHead ?? this.tecHead
      ..tecHeadPhone = tecHeadPhone ?? this.tecHeadPhone
      ..tecHeadPosition = tecHeadPosition ?? this.tecHeadPosition
      ..thereIsAnAlarmPresent = thereIsAnAlarmPresent ?? this.thereIsAnAlarmPresent
      ..updateBy = updateBy ?? this.updateBy
      ..updateById = updateById ?? this.updateById
      ..updateDate = updateDate ?? this.updateDate
      ..workType = workType ?? this.workType;
  }
}

GetRiskObjectByIdChildren $GetRiskObjectByIdChildrenFromJson(Map<String, dynamic> json) {
  final GetRiskObjectByIdChildren getRiskObjectByIdChildren = GetRiskObjectByIdChildren();
  final int? checkType = jsonConvert.convert<int>(json['checkType']);
  if (checkType != null) {
    getRiskObjectByIdChildren.checkType = checkType;
  }
  final List<GetRiskObjectByIdChildrenChildren>? children = (json['children'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<GetRiskObjectByIdChildrenChildren>(e) as GetRiskObjectByIdChildrenChildren).toList();
  if (children != null) {
    getRiskObjectByIdChildren.children = children;
  }
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    getRiskObjectByIdChildren.companyCode = companyCode;
  }
  final String? coordinate = jsonConvert.convert<String>(json['coordinate']);
  if (coordinate != null) {
    getRiskObjectByIdChildren.coordinate = coordinate;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    getRiskObjectByIdChildren.createBy = createBy;
  }
  final String? createById = jsonConvert.convert<String>(json['createById']);
  if (createById != null) {
    getRiskObjectByIdChildren.createById = createById;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    getRiskObjectByIdChildren.createDate = createDate;
  }
  final String? deleted = jsonConvert.convert<String>(json['deleted']);
  if (deleted != null) {
    getRiskObjectByIdChildren.deleted = deleted;
  }
  final String? description = jsonConvert.convert<String>(json['description']);
  if (description != null) {
    getRiskObjectByIdChildren.description = description;
  }
  final String? hazardCode = jsonConvert.convert<String>(json['hazardCode']);
  if (hazardCode != null) {
    getRiskObjectByIdChildren.hazardCode = hazardCode;
  }
  final String? hazardDep = jsonConvert.convert<String>(json['hazardDep']);
  if (hazardDep != null) {
    getRiskObjectByIdChildren.hazardDep = hazardDep;
  }
  final String? hazardDepId = jsonConvert.convert<String>(json['hazardDepId']);
  if (hazardDepId != null) {
    getRiskObjectByIdChildren.hazardDepId = hazardDepId;
  }
  final String? hazardDistinguishDep = jsonConvert.convert<String>(json['hazardDistinguishDep']);
  if (hazardDistinguishDep != null) {
    getRiskObjectByIdChildren.hazardDistinguishDep = hazardDistinguishDep;
  }
  final String? hazardDistinguishDepId = jsonConvert.convert<String>(json['hazardDistinguishDepId']);
  if (hazardDistinguishDepId != null) {
    getRiskObjectByIdChildren.hazardDistinguishDepId = hazardDistinguishDepId;
  }
  final String? hazardDistinguishPerson = jsonConvert.convert<String>(json['hazardDistinguishPerson']);
  if (hazardDistinguishPerson != null) {
    getRiskObjectByIdChildren.hazardDistinguishPerson = hazardDistinguishPerson;
  }
  final String? hazardDistinguishPersonId = jsonConvert.convert<String>(json['hazardDistinguishPersonId']);
  if (hazardDistinguishPersonId != null) {
    getRiskObjectByIdChildren.hazardDistinguishPersonId = hazardDistinguishPersonId;
  }
  final String? hazardLiablePerson = jsonConvert.convert<String>(json['hazardLiablePerson']);
  if (hazardLiablePerson != null) {
    getRiskObjectByIdChildren.hazardLiablePerson = hazardLiablePerson;
  }
  final String? hazardLiablePersonId = jsonConvert.convert<String>(json['hazardLiablePersonId']);
  if (hazardLiablePersonId != null) {
    getRiskObjectByIdChildren.hazardLiablePersonId = hazardLiablePersonId;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    getRiskObjectByIdChildren.id = id;
  }
  final String? isDistribution = jsonConvert.convert<String>(json['isDistribution']);
  if (isDistribution != null) {
    getRiskObjectByIdChildren.isDistribution = isDistribution;
  }
  final int? isUpload = jsonConvert.convert<int>(json['isUpload']);
  if (isUpload != null) {
    getRiskObjectByIdChildren.isUpload = isUpload;
  }
  final String? latitude = jsonConvert.convert<String>(json['latitude']);
  if (latitude != null) {
    getRiskObjectByIdChildren.latitude = latitude;
  }
  final int? level = jsonConvert.convert<int>(json['level']);
  if (level != null) {
    getRiskObjectByIdChildren.level = level;
  }
  final String? longitude = jsonConvert.convert<String>(json['longitude']);
  if (longitude != null) {
    getRiskObjectByIdChildren.longitude = longitude;
  }
  final String? riskObjectId = jsonConvert.convert<String>(json['riskObjectId']);
  if (riskObjectId != null) {
    getRiskObjectByIdChildren.riskObjectId = riskObjectId;
  }
  final String? riskUnitName = jsonConvert.convert<String>(json['riskUnitName']);
  if (riskUnitName != null) {
    getRiskObjectByIdChildren.riskUnitName = riskUnitName;
  }
  final int? status = jsonConvert.convert<int>(json['status']);
  if (status != null) {
    getRiskObjectByIdChildren.status = status;
  }
  final int? taskNum = jsonConvert.convert<int>(json['taskNum']);
  if (taskNum != null) {
    getRiskObjectByIdChildren.taskNum = taskNum;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    getRiskObjectByIdChildren.updateBy = updateBy;
  }
  final String? updateById = jsonConvert.convert<String>(json['updateById']);
  if (updateById != null) {
    getRiskObjectByIdChildren.updateById = updateById;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    getRiskObjectByIdChildren.updateDate = updateDate;
  }
  final String? workType = jsonConvert.convert<String>(json['workType']);
  if (workType != null) {
    getRiskObjectByIdChildren.workType = workType;
  }
  return getRiskObjectByIdChildren;
}

Map<String, dynamic> $GetRiskObjectByIdChildrenToJson(GetRiskObjectByIdChildren entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['checkType'] = entity.checkType;
  data['children'] = entity.children?.map((v) => v.toJson()).toList();
  data['companyCode'] = entity.companyCode;
  data['coordinate'] = entity.coordinate;
  data['createBy'] = entity.createBy;
  data['createById'] = entity.createById;
  data['createDate'] = entity.createDate;
  data['deleted'] = entity.deleted;
  data['description'] = entity.description;
  data['hazardCode'] = entity.hazardCode;
  data['hazardDep'] = entity.hazardDep;
  data['hazardDepId'] = entity.hazardDepId;
  data['hazardDistinguishDep'] = entity.hazardDistinguishDep;
  data['hazardDistinguishDepId'] = entity.hazardDistinguishDepId;
  data['hazardDistinguishPerson'] = entity.hazardDistinguishPerson;
  data['hazardDistinguishPersonId'] = entity.hazardDistinguishPersonId;
  data['hazardLiablePerson'] = entity.hazardLiablePerson;
  data['hazardLiablePersonId'] = entity.hazardLiablePersonId;
  data['id'] = entity.id;
  data['isDistribution'] = entity.isDistribution;
  data['isUpload'] = entity.isUpload;
  data['latitude'] = entity.latitude;
  data['level'] = entity.level;
  data['longitude'] = entity.longitude;
  data['riskObjectId'] = entity.riskObjectId;
  data['riskUnitName'] = entity.riskUnitName;
  data['status'] = entity.status;
  data['taskNum'] = entity.taskNum;
  data['updateBy'] = entity.updateBy;
  data['updateById'] = entity.updateById;
  data['updateDate'] = entity.updateDate;
  data['workType'] = entity.workType;
  return data;
}

extension GetRiskObjectByIdChildrenExtension on GetRiskObjectByIdChildren {
  GetRiskObjectByIdChildren copyWith({
    int? checkType,
    List<GetRiskObjectByIdChildrenChildren>? children,
    String? companyCode,
    String? coordinate,
    String? createBy,
    String? createById,
    String? createDate,
    String? deleted,
    String? description,
    String? hazardCode,
    String? hazardDep,
    String? hazardDepId,
    String? hazardDistinguishDep,
    String? hazardDistinguishDepId,
    String? hazardDistinguishPerson,
    String? hazardDistinguishPersonId,
    String? hazardLiablePerson,
    String? hazardLiablePersonId,
    String? id,
    String? isDistribution,
    int? isUpload,
    String? latitude,
    int? level,
    String? longitude,
    String? riskObjectId,
    String? riskUnitName,
    int? status,
    int? taskNum,
    String? updateBy,
    String? updateById,
    String? updateDate,
    String? workType,
  }) {
    return GetRiskObjectByIdChildren()
      ..checkType = checkType ?? this.checkType
      ..children = children ?? this.children
      ..companyCode = companyCode ?? this.companyCode
      ..coordinate = coordinate ?? this.coordinate
      ..createBy = createBy ?? this.createBy
      ..createById = createById ?? this.createById
      ..createDate = createDate ?? this.createDate
      ..deleted = deleted ?? this.deleted
      ..description = description ?? this.description
      ..hazardCode = hazardCode ?? this.hazardCode
      ..hazardDep = hazardDep ?? this.hazardDep
      ..hazardDepId = hazardDepId ?? this.hazardDepId
      ..hazardDistinguishDep = hazardDistinguishDep ?? this.hazardDistinguishDep
      ..hazardDistinguishDepId = hazardDistinguishDepId ?? this.hazardDistinguishDepId
      ..hazardDistinguishPerson = hazardDistinguishPerson ?? this.hazardDistinguishPerson
      ..hazardDistinguishPersonId = hazardDistinguishPersonId ?? this.hazardDistinguishPersonId
      ..hazardLiablePerson = hazardLiablePerson ?? this.hazardLiablePerson
      ..hazardLiablePersonId = hazardLiablePersonId ?? this.hazardLiablePersonId
      ..id = id ?? this.id
      ..isDistribution = isDistribution ?? this.isDistribution
      ..isUpload = isUpload ?? this.isUpload
      ..latitude = latitude ?? this.latitude
      ..level = level ?? this.level
      ..longitude = longitude ?? this.longitude
      ..riskObjectId = riskObjectId ?? this.riskObjectId
      ..riskUnitName = riskUnitName ?? this.riskUnitName
      ..status = status ?? this.status
      ..taskNum = taskNum ?? this.taskNum
      ..updateBy = updateBy ?? this.updateBy
      ..updateById = updateById ?? this.updateById
      ..updateDate = updateDate ?? this.updateDate
      ..workType = workType ?? this.workType;
  }
}

GetRiskObjectByIdChildrenChildren $GetRiskObjectByIdChildrenChildrenFromJson(Map<String, dynamic> json) {
  final GetRiskObjectByIdChildrenChildren getRiskObjectByIdChildrenChildren = GetRiskObjectByIdChildrenChildren();
  final int? checkType = jsonConvert.convert<int>(json['checkType']);
  if (checkType != null) {
    getRiskObjectByIdChildrenChildren.checkType = checkType;
  }
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    getRiskObjectByIdChildrenChildren.companyCode = companyCode;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    getRiskObjectByIdChildrenChildren.createBy = createBy;
  }
  final String? createById = jsonConvert.convert<String>(json['createById']);
  if (createById != null) {
    getRiskObjectByIdChildrenChildren.createById = createById;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    getRiskObjectByIdChildrenChildren.createDate = createDate;
  }
  final int? currentRiskDegree = jsonConvert.convert<int>(json['currentRiskDegree']);
  if (currentRiskDegree != null) {
    getRiskObjectByIdChildrenChildren.currentRiskDegree = currentRiskDegree;
  }
  final String? currentRiskLevel = jsonConvert.convert<String>(json['currentRiskLevel']);
  if (currentRiskLevel != null) {
    getRiskObjectByIdChildrenChildren.currentRiskLevel = currentRiskLevel;
  }
  final String? damageTypeId = jsonConvert.convert<String>(json['damageTypeId']);
  if (damageTypeId != null) {
    getRiskObjectByIdChildrenChildren.damageTypeId = damageTypeId;
  }
  final String? damageTypeIdName = jsonConvert.convert<String>(json['damageTypeIdName']);
  if (damageTypeIdName != null) {
    getRiskObjectByIdChildrenChildren.damageTypeIdName = damageTypeIdName;
  }
  final String? dataSources = jsonConvert.convert<String>(json['dataSources']);
  if (dataSources != null) {
    getRiskObjectByIdChildrenChildren.dataSources = dataSources;
  }
  final String? deleted = jsonConvert.convert<String>(json['deleted']);
  if (deleted != null) {
    getRiskObjectByIdChildrenChildren.deleted = deleted;
  }
  final String? hazardCode = jsonConvert.convert<String>(json['hazardCode']);
  if (hazardCode != null) {
    getRiskObjectByIdChildrenChildren.hazardCode = hazardCode;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    getRiskObjectByIdChildrenChildren.id = id;
  }
  final int? initialRiskConsequences = jsonConvert.convert<int>(json['initialRiskConsequences']);
  if (initialRiskConsequences != null) {
    getRiskObjectByIdChildrenChildren.initialRiskConsequences = initialRiskConsequences;
  }
  final int? initialRiskDegree = jsonConvert.convert<int>(json['initialRiskDegree']);
  if (initialRiskDegree != null) {
    getRiskObjectByIdChildrenChildren.initialRiskDegree = initialRiskDegree;
  }
  final String? initialRiskLevel = jsonConvert.convert<String>(json['initialRiskLevel']);
  if (initialRiskLevel != null) {
    getRiskObjectByIdChildrenChildren.initialRiskLevel = initialRiskLevel;
  }
  final int? initialRiskPossibility = jsonConvert.convert<int>(json['initialRiskPossibility']);
  if (initialRiskPossibility != null) {
    getRiskObjectByIdChildrenChildren.initialRiskPossibility = initialRiskPossibility;
  }
  final int? isUpload = jsonConvert.convert<int>(json['isUpload']);
  if (isUpload != null) {
    getRiskObjectByIdChildrenChildren.isUpload = isUpload;
  }
  final int? level = jsonConvert.convert<int>(json['level']);
  if (level != null) {
    getRiskObjectByIdChildrenChildren.level = level;
  }
  final String? riskDescription = jsonConvert.convert<String>(json['riskDescription']);
  if (riskDescription != null) {
    getRiskObjectByIdChildrenChildren.riskDescription = riskDescription;
  }
  final String? riskEventName = jsonConvert.convert<String>(json['riskEventName']);
  if (riskEventName != null) {
    getRiskObjectByIdChildrenChildren.riskEventName = riskEventName;
  }
  final String? riskObjectId = jsonConvert.convert<String>(json['riskObjectId']);
  if (riskObjectId != null) {
    getRiskObjectByIdChildrenChildren.riskObjectId = riskObjectId;
  }
  final String? riskUnitId = jsonConvert.convert<String>(json['riskUnitId']);
  if (riskUnitId != null) {
    getRiskObjectByIdChildrenChildren.riskUnitId = riskUnitId;
  }
  final int? status = jsonConvert.convert<int>(json['status']);
  if (status != null) {
    getRiskObjectByIdChildrenChildren.status = status;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    getRiskObjectByIdChildrenChildren.updateBy = updateBy;
  }
  final String? updateById = jsonConvert.convert<String>(json['updateById']);
  if (updateById != null) {
    getRiskObjectByIdChildrenChildren.updateById = updateById;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    getRiskObjectByIdChildrenChildren.updateDate = updateDate;
  }
  final String? warehouseId = jsonConvert.convert<String>(json['warehouseId']);
  if (warehouseId != null) {
    getRiskObjectByIdChildrenChildren.warehouseId = warehouseId;
  }
  final String? workType = jsonConvert.convert<String>(json['workType']);
  if (workType != null) {
    getRiskObjectByIdChildrenChildren.workType = workType;
  }
  return getRiskObjectByIdChildrenChildren;
}

Map<String, dynamic> $GetRiskObjectByIdChildrenChildrenToJson(GetRiskObjectByIdChildrenChildren entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['checkType'] = entity.checkType;
  data['companyCode'] = entity.companyCode;
  data['createBy'] = entity.createBy;
  data['createById'] = entity.createById;
  data['createDate'] = entity.createDate;
  data['currentRiskDegree'] = entity.currentRiskDegree;
  data['currentRiskLevel'] = entity.currentRiskLevel;
  data['damageTypeId'] = entity.damageTypeId;
  data['damageTypeIdName'] = entity.damageTypeIdName;
  data['dataSources'] = entity.dataSources;
  data['deleted'] = entity.deleted;
  data['hazardCode'] = entity.hazardCode;
  data['id'] = entity.id;
  data['initialRiskConsequences'] = entity.initialRiskConsequences;
  data['initialRiskDegree'] = entity.initialRiskDegree;
  data['initialRiskLevel'] = entity.initialRiskLevel;
  data['initialRiskPossibility'] = entity.initialRiskPossibility;
  data['isUpload'] = entity.isUpload;
  data['level'] = entity.level;
  data['riskDescription'] = entity.riskDescription;
  data['riskEventName'] = entity.riskEventName;
  data['riskObjectId'] = entity.riskObjectId;
  data['riskUnitId'] = entity.riskUnitId;
  data['status'] = entity.status;
  data['updateBy'] = entity.updateBy;
  data['updateById'] = entity.updateById;
  data['updateDate'] = entity.updateDate;
  data['warehouseId'] = entity.warehouseId;
  data['workType'] = entity.workType;
  return data;
}

extension GetRiskObjectByIdChildrenChildrenExtension on GetRiskObjectByIdChildrenChildren {
  GetRiskObjectByIdChildrenChildren copyWith({
    int? checkType,
    String? companyCode,
    String? createBy,
    String? createById,
    String? createDate,
    int? currentRiskDegree,
    String? currentRiskLevel,
    String? damageTypeId,
    String? damageTypeIdName,
    String? dataSources,
    String? deleted,
    String? hazardCode,
    String? id,
    int? initialRiskConsequences,
    int? initialRiskDegree,
    String? initialRiskLevel,
    int? initialRiskPossibility,
    int? isUpload,
    int? level,
    String? riskDescription,
    String? riskEventName,
    String? riskObjectId,
    String? riskUnitId,
    int? status,
    String? updateBy,
    String? updateById,
    String? updateDate,
    String? warehouseId,
    String? workType,
  }) {
    return GetRiskObjectByIdChildrenChildren()
      ..checkType = checkType ?? this.checkType
      ..companyCode = companyCode ?? this.companyCode
      ..createBy = createBy ?? this.createBy
      ..createById = createById ?? this.createById
      ..createDate = createDate ?? this.createDate
      ..currentRiskDegree = currentRiskDegree ?? this.currentRiskDegree
      ..currentRiskLevel = currentRiskLevel ?? this.currentRiskLevel
      ..damageTypeId = damageTypeId ?? this.damageTypeId
      ..damageTypeIdName = damageTypeIdName ?? this.damageTypeIdName
      ..dataSources = dataSources ?? this.dataSources
      ..deleted = deleted ?? this.deleted
      ..hazardCode = hazardCode ?? this.hazardCode
      ..id = id ?? this.id
      ..initialRiskConsequences = initialRiskConsequences ?? this.initialRiskConsequences
      ..initialRiskDegree = initialRiskDegree ?? this.initialRiskDegree
      ..initialRiskLevel = initialRiskLevel ?? this.initialRiskLevel
      ..initialRiskPossibility = initialRiskPossibility ?? this.initialRiskPossibility
      ..isUpload = isUpload ?? this.isUpload
      ..level = level ?? this.level
      ..riskDescription = riskDescription ?? this.riskDescription
      ..riskEventName = riskEventName ?? this.riskEventName
      ..riskObjectId = riskObjectId ?? this.riskObjectId
      ..riskUnitId = riskUnitId ?? this.riskUnitId
      ..status = status ?? this.status
      ..updateBy = updateBy ?? this.updateBy
      ..updateById = updateById ?? this.updateById
      ..updateDate = updateDate ?? this.updateDate
      ..warehouseId = warehouseId ?? this.warehouseId
      ..workType = workType ?? this.workType;
  }
}

GetRiskObjectByIdEquipVOList $GetRiskObjectByIdEquipVOListFromJson(Map<String, dynamic> json) {
  final GetRiskObjectByIdEquipVOList getRiskObjectByIdEquipVOList = GetRiskObjectByIdEquipVOList();
  final String? alarmDevice = jsonConvert.convert<String>(json['alarmDevice']);
  if (alarmDevice != null) {
    getRiskObjectByIdEquipVOList.alarmDevice = alarmDevice;
  }
  final String? backupLinkAddress = jsonConvert.convert<String>(json['backupLinkAddress']);
  if (backupLinkAddress != null) {
    getRiskObjectByIdEquipVOList.backupLinkAddress = backupLinkAddress;
  }
  final String? buildDate = jsonConvert.convert<String>(json['buildDate']);
  if (buildDate != null) {
    getRiskObjectByIdEquipVOList.buildDate = buildDate;
  }
  final String? bypassSwitchTotalLocaleNo = jsonConvert.convert<String>(json['bypassSwitchTotalLocaleNo']);
  if (bypassSwitchTotalLocaleNo != null) {
    getRiskObjectByIdEquipVOList.bypassSwitchTotalLocaleNo = bypassSwitchTotalLocaleNo;
  }
  final String? chemicalProcessTypeDicId = jsonConvert.convert<String>(json['chemicalProcessTypeDicId']);
  if (chemicalProcessTypeDicId != null) {
    getRiskObjectByIdEquipVOList.chemicalProcessTypeDicId = chemicalProcessTypeDicId;
  }
  final String? chemicalProcessTypeDicIdLabel = jsonConvert.convert<String>(json['chemicalProcessTypeDicIdLabel']);
  if (chemicalProcessTypeDicIdLabel != null) {
    getRiskObjectByIdEquipVOList.chemicalProcessTypeDicIdLabel = chemicalProcessTypeDicIdLabel;
  }
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    getRiskObjectByIdEquipVOList.companyCode = companyCode;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    getRiskObjectByIdEquipVOList.createBy = createBy;
  }
  final String? createById = jsonConvert.convert<String>(json['createById']);
  if (createById != null) {
    getRiskObjectByIdEquipVOList.createById = createById;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    getRiskObjectByIdEquipVOList.createDate = createDate;
  }
  final String? deleted = jsonConvert.convert<String>(json['deleted']);
  if (deleted != null) {
    getRiskObjectByIdEquipVOList.deleted = deleted;
  }
  final int? designReserve = jsonConvert.convert<int>(json['designReserve']);
  if (designReserve != null) {
    getRiskObjectByIdEquipVOList.designReserve = designReserve;
  }
  final List<GetRiskObjectByIdEquipVOListDeviceDetectionList>? deviceDetectionList = (json['deviceDetectionList'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<GetRiskObjectByIdEquipVOListDeviceDetectionList>(e) as GetRiskObjectByIdEquipVOListDeviceDetectionList).toList();
  if (deviceDetectionList != null) {
    getRiskObjectByIdEquipVOList.deviceDetectionList = deviceDetectionList;
  }
  final String? deviceType = jsonConvert.convert<String>(json['deviceType']);
  if (deviceType != null) {
    getRiskObjectByIdEquipVOList.deviceType = deviceType;
  }
  final String? deviceTypeLabel = jsonConvert.convert<String>(json['deviceTypeLabel']);
  if (deviceTypeLabel != null) {
    getRiskObjectByIdEquipVOList.deviceTypeLabel = deviceTypeLabel;
  }
  final String? equipCode = jsonConvert.convert<String>(json['equipCode']);
  if (equipCode != null) {
    getRiskObjectByIdEquipVOList.equipCode = equipCode;
  }
  final String? equipDescribe = jsonConvert.convert<String>(json['equipDescribe']);
  if (equipDescribe != null) {
    getRiskObjectByIdEquipVOList.equipDescribe = equipDescribe;
  }
  final String? equipLevel = jsonConvert.convert<String>(json['equipLevel']);
  if (equipLevel != null) {
    getRiskObjectByIdEquipVOList.equipLevel = equipLevel;
  }
  final String? equipLevelLabel = jsonConvert.convert<String>(json['equipLevelLabel']);
  if (equipLevelLabel != null) {
    getRiskObjectByIdEquipVOList.equipLevelLabel = equipLevelLabel;
  }
  final String? equipName = jsonConvert.convert<String>(json['equipName']);
  if (equipName != null) {
    getRiskObjectByIdEquipVOList.equipName = equipName;
  }
  final String? equipStatus = jsonConvert.convert<String>(json['equipStatus']);
  if (equipStatus != null) {
    getRiskObjectByIdEquipVOList.equipStatus = equipStatus;
  }
  final String? equipTypeDicId = jsonConvert.convert<String>(json['equipTypeDicId']);
  if (equipTypeDicId != null) {
    getRiskObjectByIdEquipVOList.equipTypeDicId = equipTypeDicId;
  }
  final String? equipTypeDicIdLabel = jsonConvert.convert<String>(json['equipTypeDicIdLabel']);
  if (equipTypeDicIdLabel != null) {
    getRiskObjectByIdEquipVOList.equipTypeDicIdLabel = equipTypeDicIdLabel;
  }
  final GetRiskObjectByIdEquipVOListFilePath? filePath = jsonConvert.convert<GetRiskObjectByIdEquipVOListFilePath>(json['filePath']);
  if (filePath != null) {
    getRiskObjectByIdEquipVOList.filePath = filePath;
  }
  final int? floorArea = jsonConvert.convert<int>(json['floorArea']);
  if (floorArea != null) {
    getRiskObjectByIdEquipVOList.floorArea = floorArea;
  }
  final String? havePressurePipeline = jsonConvert.convert<String>(json['havePressurePipeline']);
  if (havePressurePipeline != null) {
    getRiskObjectByIdEquipVOList.havePressurePipeline = havePressurePipeline;
  }
  final String? hazardCode = jsonConvert.convert<String>(json['hazardCode']);
  if (hazardCode != null) {
    getRiskObjectByIdEquipVOList.hazardCode = hazardCode;
  }
  final String? hazardName = jsonConvert.convert<String>(json['hazardName']);
  if (hazardName != null) {
    getRiskObjectByIdEquipVOList.hazardName = hazardName;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    getRiskObjectByIdEquipVOList.id = id;
  }
  final int? interlockingCount = jsonConvert.convert<int>(json['interlockingCount']);
  if (interlockingCount != null) {
    getRiskObjectByIdEquipVOList.interlockingCount = interlockingCount;
  }
  final String? ipAddress = jsonConvert.convert<String>(json['ipAddress']);
  if (ipAddress != null) {
    getRiskObjectByIdEquipVOList.ipAddress = ipAddress;
  }
  final String? ipBroadcastName = jsonConvert.convert<String>(json['ipBroadcastName']);
  if (ipBroadcastName != null) {
    getRiskObjectByIdEquipVOList.ipBroadcastName = ipBroadcastName;
  }
  final String? isBoiler = jsonConvert.convert<String>(json['isBoiler']);
  if (isBoiler != null) {
    getRiskObjectByIdEquipVOList.isBoiler = isBoiler;
  }
  final String? isPressureVessel = jsonConvert.convert<String>(json['isPressureVessel']);
  if (isPressureVessel != null) {
    getRiskObjectByIdEquipVOList.isPressureVessel = isPressureVessel;
  }
  final String? latitude = jsonConvert.convert<String>(json['latitude']);
  if (latitude != null) {
    getRiskObjectByIdEquipVOList.latitude = latitude;
  }
  final int? liquidLevel = jsonConvert.convert<int>(json['liquidLevel']);
  if (liquidLevel != null) {
    getRiskObjectByIdEquipVOList.liquidLevel = liquidLevel;
  }
  final String? longitude = jsonConvert.convert<String>(json['longitude']);
  if (longitude != null) {
    getRiskObjectByIdEquipVOList.longitude = longitude;
  }
  final String? mainSwitchStatusLocaleNo = jsonConvert.convert<String>(json['mainSwitchStatusLocaleNo']);
  if (mainSwitchStatusLocaleNo != null) {
    getRiskObjectByIdEquipVOList.mainSwitchStatusLocaleNo = mainSwitchStatusLocaleNo;
  }
  final String? maintenanceDate = jsonConvert.convert<String>(json['maintenanceDate']);
  if (maintenanceDate != null) {
    getRiskObjectByIdEquipVOList.maintenanceDate = maintenanceDate;
  }
  final String? manLinkAddress = jsonConvert.convert<String>(json['manLinkAddress']);
  if (manLinkAddress != null) {
    getRiskObjectByIdEquipVOList.manLinkAddress = manLinkAddress;
  }
  final String? medium = jsonConvert.convert<String>(json['medium']);
  if (medium != null) {
    getRiskObjectByIdEquipVOList.medium = medium;
  }
  final String? mediumStatusDicId = jsonConvert.convert<String>(json['mediumStatusDicId']);
  if (mediumStatusDicId != null) {
    getRiskObjectByIdEquipVOList.mediumStatusDicId = mediumStatusDicId;
  }
  final String? mediumStatusDicIdLabel = jsonConvert.convert<String>(json['mediumStatusDicIdLabel']);
  if (mediumStatusDicIdLabel != null) {
    getRiskObjectByIdEquipVOList.mediumStatusDicIdLabel = mediumStatusDicIdLabel;
  }
  final String? monitorGas = jsonConvert.convert<String>(json['monitorGas']);
  if (monitorGas != null) {
    getRiskObjectByIdEquipVOList.monitorGas = monitorGas;
  }
  final String? monitorGasLabel = jsonConvert.convert<String>(json['monitorGasLabel']);
  if (monitorGasLabel != null) {
    getRiskObjectByIdEquipVOList.monitorGasLabel = monitorGasLabel;
  }
  final String? monitorTypeDicId = jsonConvert.convert<String>(json['monitorTypeDicId']);
  if (monitorTypeDicId != null) {
    getRiskObjectByIdEquipVOList.monitorTypeDicId = monitorTypeDicId;
  }
  final String? monitorTypeDicIdLabel = jsonConvert.convert<String>(json['monitorTypeDicIdLabel']);
  if (monitorTypeDicIdLabel != null) {
    getRiskObjectByIdEquipVOList.monitorTypeDicIdLabel = monitorTypeDicIdLabel;
  }
  final String? parameterDesc = jsonConvert.convert<String>(json['parameterDesc']);
  if (parameterDesc != null) {
    getRiskObjectByIdEquipVOList.parameterDesc = parameterDesc;
  }
  final int? pressureDesign = jsonConvert.convert<int>(json['pressureDesign']);
  if (pressureDesign != null) {
    getRiskObjectByIdEquipVOList.pressureDesign = pressureDesign;
  }
  final int? pressureMax = jsonConvert.convert<int>(json['pressureMax']);
  if (pressureMax != null) {
    getRiskObjectByIdEquipVOList.pressureMax = pressureMax;
  }
  final String? pressureTypeDicId = jsonConvert.convert<String>(json['pressureTypeDicId']);
  if (pressureTypeDicId != null) {
    getRiskObjectByIdEquipVOList.pressureTypeDicId = pressureTypeDicId;
  }
  final String? pressureTypeDicIdLabel = jsonConvert.convert<String>(json['pressureTypeDicIdLabel']);
  if (pressureTypeDicIdLabel != null) {
    getRiskObjectByIdEquipVOList.pressureTypeDicIdLabel = pressureTypeDicIdLabel;
  }
  final String? ptInfo = jsonConvert.convert<String>(json['ptInfo']);
  if (ptInfo != null) {
    getRiskObjectByIdEquipVOList.ptInfo = ptInfo;
  }
  final int? rangeDown = jsonConvert.convert<int>(json['rangeDown']);
  if (rangeDown != null) {
    getRiskObjectByIdEquipVOList.rangeDown = rangeDown;
  }
  final int? rangeUp = jsonConvert.convert<int>(json['rangeUp']);
  if (rangeUp != null) {
    getRiskObjectByIdEquipVOList.rangeUp = rangeUp;
  }
  final int? reserves = jsonConvert.convert<int>(json['reserves']);
  if (reserves != null) {
    getRiskObjectByIdEquipVOList.reserves = reserves;
  }
  final String? riskObjectId = jsonConvert.convert<String>(json['riskObjectId']);
  if (riskObjectId != null) {
    getRiskObjectByIdEquipVOList.riskObjectId = riskObjectId;
  }
  final String? startDate = jsonConvert.convert<String>(json['startDate']);
  if (startDate != null) {
    getRiskObjectByIdEquipVOList.startDate = startDate;
  }
  final String? storeTypeDicId = jsonConvert.convert<String>(json['storeTypeDicId']);
  if (storeTypeDicId != null) {
    getRiskObjectByIdEquipVOList.storeTypeDicId = storeTypeDicId;
  }
  final String? storeTypeDicIdLabel = jsonConvert.convert<String>(json['storeTypeDicIdLabel']);
  if (storeTypeDicIdLabel != null) {
    getRiskObjectByIdEquipVOList.storeTypeDicIdLabel = storeTypeDicIdLabel;
  }
  final String? tankTypeDicId = jsonConvert.convert<String>(json['tankTypeDicId']);
  if (tankTypeDicId != null) {
    getRiskObjectByIdEquipVOList.tankTypeDicId = tankTypeDicId;
  }
  final String? tankTypeDicIdLabel = jsonConvert.convert<String>(json['tankTypeDicIdLabel']);
  if (tankTypeDicIdLabel != null) {
    getRiskObjectByIdEquipVOList.tankTypeDicIdLabel = tankTypeDicIdLabel;
  }
  final String? targetCode = jsonConvert.convert<String>(json['targetCode']);
  if (targetCode != null) {
    getRiskObjectByIdEquipVOList.targetCode = targetCode;
  }
  final String? targetName = jsonConvert.convert<String>(json['targetName']);
  if (targetName != null) {
    getRiskObjectByIdEquipVOList.targetName = targetName;
  }
  final String? targetType = jsonConvert.convert<String>(json['targetType']);
  if (targetType != null) {
    getRiskObjectByIdEquipVOList.targetType = targetType;
  }
  final int? temperatureMax = jsonConvert.convert<int>(json['temperatureMax']);
  if (temperatureMax != null) {
    getRiskObjectByIdEquipVOList.temperatureMax = temperatureMax;
  }
  final int? temperatureMin = jsonConvert.convert<int>(json['temperatureMin']);
  if (temperatureMin != null) {
    getRiskObjectByIdEquipVOList.temperatureMin = temperatureMin;
  }
  final String? temperatureTypeDicId = jsonConvert.convert<String>(json['temperatureTypeDicId']);
  if (temperatureTypeDicId != null) {
    getRiskObjectByIdEquipVOList.temperatureTypeDicId = temperatureTypeDicId;
  }
  final String? temperatureTypeDicIdLabel = jsonConvert.convert<String>(json['temperatureTypeDicIdLabel']);
  if (temperatureTypeDicIdLabel != null) {
    getRiskObjectByIdEquipVOList.temperatureTypeDicIdLabel = temperatureTypeDicIdLabel;
  }
  final int? thresholdDown = jsonConvert.convert<int>(json['thresholdDown']);
  if (thresholdDown != null) {
    getRiskObjectByIdEquipVOList.thresholdDown = thresholdDown;
  }
  final int? thresholdDown2 = jsonConvert.convert<int>(json['thresholdDown2']);
  if (thresholdDown2 != null) {
    getRiskObjectByIdEquipVOList.thresholdDown2 = thresholdDown2;
  }
  final int? thresholdUp = jsonConvert.convert<int>(json['thresholdUp']);
  if (thresholdUp != null) {
    getRiskObjectByIdEquipVOList.thresholdUp = thresholdUp;
  }
  final int? thresholdUp2 = jsonConvert.convert<int>(json['thresholdUp2']);
  if (thresholdUp2 != null) {
    getRiskObjectByIdEquipVOList.thresholdUp2 = thresholdUp2;
  }
  final String? unit = jsonConvert.convert<String>(json['unit']);
  if (unit != null) {
    getRiskObjectByIdEquipVOList.unit = unit;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    getRiskObjectByIdEquipVOList.updateBy = updateBy;
  }
  final String? updateById = jsonConvert.convert<String>(json['updateById']);
  if (updateById != null) {
    getRiskObjectByIdEquipVOList.updateById = updateById;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    getRiskObjectByIdEquipVOList.updateDate = updateDate;
  }
  final String? useDate = jsonConvert.convert<String>(json['useDate']);
  if (useDate != null) {
    getRiskObjectByIdEquipVOList.useDate = useDate;
  }
  return getRiskObjectByIdEquipVOList;
}

Map<String, dynamic> $GetRiskObjectByIdEquipVOListToJson(GetRiskObjectByIdEquipVOList entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['alarmDevice'] = entity.alarmDevice;
  data['backupLinkAddress'] = entity.backupLinkAddress;
  data['buildDate'] = entity.buildDate;
  data['bypassSwitchTotalLocaleNo'] = entity.bypassSwitchTotalLocaleNo;
  data['chemicalProcessTypeDicId'] = entity.chemicalProcessTypeDicId;
  data['chemicalProcessTypeDicIdLabel'] = entity.chemicalProcessTypeDicIdLabel;
  data['companyCode'] = entity.companyCode;
  data['createBy'] = entity.createBy;
  data['createById'] = entity.createById;
  data['createDate'] = entity.createDate;
  data['deleted'] = entity.deleted;
  data['designReserve'] = entity.designReserve;
  data['deviceDetectionList'] = entity.deviceDetectionList?.map((v) => v.toJson()).toList();
  data['deviceType'] = entity.deviceType;
  data['deviceTypeLabel'] = entity.deviceTypeLabel;
  data['equipCode'] = entity.equipCode;
  data['equipDescribe'] = entity.equipDescribe;
  data['equipLevel'] = entity.equipLevel;
  data['equipLevelLabel'] = entity.equipLevelLabel;
  data['equipName'] = entity.equipName;
  data['equipStatus'] = entity.equipStatus;
  data['equipTypeDicId'] = entity.equipTypeDicId;
  data['equipTypeDicIdLabel'] = entity.equipTypeDicIdLabel;
  data['filePath'] = entity.filePath?.toJson();
  data['floorArea'] = entity.floorArea;
  data['havePressurePipeline'] = entity.havePressurePipeline;
  data['hazardCode'] = entity.hazardCode;
  data['hazardName'] = entity.hazardName;
  data['id'] = entity.id;
  data['interlockingCount'] = entity.interlockingCount;
  data['ipAddress'] = entity.ipAddress;
  data['ipBroadcastName'] = entity.ipBroadcastName;
  data['isBoiler'] = entity.isBoiler;
  data['isPressureVessel'] = entity.isPressureVessel;
  data['latitude'] = entity.latitude;
  data['liquidLevel'] = entity.liquidLevel;
  data['longitude'] = entity.longitude;
  data['mainSwitchStatusLocaleNo'] = entity.mainSwitchStatusLocaleNo;
  data['maintenanceDate'] = entity.maintenanceDate;
  data['manLinkAddress'] = entity.manLinkAddress;
  data['medium'] = entity.medium;
  data['mediumStatusDicId'] = entity.mediumStatusDicId;
  data['mediumStatusDicIdLabel'] = entity.mediumStatusDicIdLabel;
  data['monitorGas'] = entity.monitorGas;
  data['monitorGasLabel'] = entity.monitorGasLabel;
  data['monitorTypeDicId'] = entity.monitorTypeDicId;
  data['monitorTypeDicIdLabel'] = entity.monitorTypeDicIdLabel;
  data['parameterDesc'] = entity.parameterDesc;
  data['pressureDesign'] = entity.pressureDesign;
  data['pressureMax'] = entity.pressureMax;
  data['pressureTypeDicId'] = entity.pressureTypeDicId;
  data['pressureTypeDicIdLabel'] = entity.pressureTypeDicIdLabel;
  data['ptInfo'] = entity.ptInfo;
  data['rangeDown'] = entity.rangeDown;
  data['rangeUp'] = entity.rangeUp;
  data['reserves'] = entity.reserves;
  data['riskObjectId'] = entity.riskObjectId;
  data['startDate'] = entity.startDate;
  data['storeTypeDicId'] = entity.storeTypeDicId;
  data['storeTypeDicIdLabel'] = entity.storeTypeDicIdLabel;
  data['tankTypeDicId'] = entity.tankTypeDicId;
  data['tankTypeDicIdLabel'] = entity.tankTypeDicIdLabel;
  data['targetCode'] = entity.targetCode;
  data['targetName'] = entity.targetName;
  data['targetType'] = entity.targetType;
  data['temperatureMax'] = entity.temperatureMax;
  data['temperatureMin'] = entity.temperatureMin;
  data['temperatureTypeDicId'] = entity.temperatureTypeDicId;
  data['temperatureTypeDicIdLabel'] = entity.temperatureTypeDicIdLabel;
  data['thresholdDown'] = entity.thresholdDown;
  data['thresholdDown2'] = entity.thresholdDown2;
  data['thresholdUp'] = entity.thresholdUp;
  data['thresholdUp2'] = entity.thresholdUp2;
  data['unit'] = entity.unit;
  data['updateBy'] = entity.updateBy;
  data['updateById'] = entity.updateById;
  data['updateDate'] = entity.updateDate;
  data['useDate'] = entity.useDate;
  return data;
}

extension GetRiskObjectByIdEquipVOListExtension on GetRiskObjectByIdEquipVOList {
  GetRiskObjectByIdEquipVOList copyWith({
    String? alarmDevice,
    String? backupLinkAddress,
    String? buildDate,
    String? bypassSwitchTotalLocaleNo,
    String? chemicalProcessTypeDicId,
    String? chemicalProcessTypeDicIdLabel,
    String? companyCode,
    String? createBy,
    String? createById,
    String? createDate,
    String? deleted,
    int? designReserve,
    List<GetRiskObjectByIdEquipVOListDeviceDetectionList>? deviceDetectionList,
    String? deviceType,
    String? deviceTypeLabel,
    String? equipCode,
    String? equipDescribe,
    String? equipLevel,
    String? equipLevelLabel,
    String? equipName,
    String? equipStatus,
    String? equipTypeDicId,
    String? equipTypeDicIdLabel,
    GetRiskObjectByIdEquipVOListFilePath? filePath,
    int? floorArea,
    String? havePressurePipeline,
    String? hazardCode,
    String? hazardName,
    String? id,
    int? interlockingCount,
    String? ipAddress,
    String? ipBroadcastName,
    String? isBoiler,
    String? isPressureVessel,
    String? latitude,
    int? liquidLevel,
    String? longitude,
    String? mainSwitchStatusLocaleNo,
    String? maintenanceDate,
    String? manLinkAddress,
    String? medium,
    String? mediumStatusDicId,
    String? mediumStatusDicIdLabel,
    String? monitorGas,
    String? monitorGasLabel,
    String? monitorTypeDicId,
    String? monitorTypeDicIdLabel,
    String? parameterDesc,
    int? pressureDesign,
    int? pressureMax,
    String? pressureTypeDicId,
    String? pressureTypeDicIdLabel,
    String? ptInfo,
    int? rangeDown,
    int? rangeUp,
    int? reserves,
    String? riskObjectId,
    String? startDate,
    String? storeTypeDicId,
    String? storeTypeDicIdLabel,
    String? tankTypeDicId,
    String? tankTypeDicIdLabel,
    String? targetCode,
    String? targetName,
    String? targetType,
    int? temperatureMax,
    int? temperatureMin,
    String? temperatureTypeDicId,
    String? temperatureTypeDicIdLabel,
    int? thresholdDown,
    int? thresholdDown2,
    int? thresholdUp,
    int? thresholdUp2,
    String? unit,
    String? updateBy,
    String? updateById,
    String? updateDate,
    String? useDate,
  }) {
    return GetRiskObjectByIdEquipVOList()
      ..alarmDevice = alarmDevice ?? this.alarmDevice
      ..backupLinkAddress = backupLinkAddress ?? this.backupLinkAddress
      ..buildDate = buildDate ?? this.buildDate
      ..bypassSwitchTotalLocaleNo = bypassSwitchTotalLocaleNo ?? this.bypassSwitchTotalLocaleNo
      ..chemicalProcessTypeDicId = chemicalProcessTypeDicId ?? this.chemicalProcessTypeDicId
      ..chemicalProcessTypeDicIdLabel = chemicalProcessTypeDicIdLabel ?? this.chemicalProcessTypeDicIdLabel
      ..companyCode = companyCode ?? this.companyCode
      ..createBy = createBy ?? this.createBy
      ..createById = createById ?? this.createById
      ..createDate = createDate ?? this.createDate
      ..deleted = deleted ?? this.deleted
      ..designReserve = designReserve ?? this.designReserve
      ..deviceDetectionList = deviceDetectionList ?? this.deviceDetectionList
      ..deviceType = deviceType ?? this.deviceType
      ..deviceTypeLabel = deviceTypeLabel ?? this.deviceTypeLabel
      ..equipCode = equipCode ?? this.equipCode
      ..equipDescribe = equipDescribe ?? this.equipDescribe
      ..equipLevel = equipLevel ?? this.equipLevel
      ..equipLevelLabel = equipLevelLabel ?? this.equipLevelLabel
      ..equipName = equipName ?? this.equipName
      ..equipStatus = equipStatus ?? this.equipStatus
      ..equipTypeDicId = equipTypeDicId ?? this.equipTypeDicId
      ..equipTypeDicIdLabel = equipTypeDicIdLabel ?? this.equipTypeDicIdLabel
      ..filePath = filePath ?? this.filePath
      ..floorArea = floorArea ?? this.floorArea
      ..havePressurePipeline = havePressurePipeline ?? this.havePressurePipeline
      ..hazardCode = hazardCode ?? this.hazardCode
      ..hazardName = hazardName ?? this.hazardName
      ..id = id ?? this.id
      ..interlockingCount = interlockingCount ?? this.interlockingCount
      ..ipAddress = ipAddress ?? this.ipAddress
      ..ipBroadcastName = ipBroadcastName ?? this.ipBroadcastName
      ..isBoiler = isBoiler ?? this.isBoiler
      ..isPressureVessel = isPressureVessel ?? this.isPressureVessel
      ..latitude = latitude ?? this.latitude
      ..liquidLevel = liquidLevel ?? this.liquidLevel
      ..longitude = longitude ?? this.longitude
      ..mainSwitchStatusLocaleNo = mainSwitchStatusLocaleNo ?? this.mainSwitchStatusLocaleNo
      ..maintenanceDate = maintenanceDate ?? this.maintenanceDate
      ..manLinkAddress = manLinkAddress ?? this.manLinkAddress
      ..medium = medium ?? this.medium
      ..mediumStatusDicId = mediumStatusDicId ?? this.mediumStatusDicId
      ..mediumStatusDicIdLabel = mediumStatusDicIdLabel ?? this.mediumStatusDicIdLabel
      ..monitorGas = monitorGas ?? this.monitorGas
      ..monitorGasLabel = monitorGasLabel ?? this.monitorGasLabel
      ..monitorTypeDicId = monitorTypeDicId ?? this.monitorTypeDicId
      ..monitorTypeDicIdLabel = monitorTypeDicIdLabel ?? this.monitorTypeDicIdLabel
      ..parameterDesc = parameterDesc ?? this.parameterDesc
      ..pressureDesign = pressureDesign ?? this.pressureDesign
      ..pressureMax = pressureMax ?? this.pressureMax
      ..pressureTypeDicId = pressureTypeDicId ?? this.pressureTypeDicId
      ..pressureTypeDicIdLabel = pressureTypeDicIdLabel ?? this.pressureTypeDicIdLabel
      ..ptInfo = ptInfo ?? this.ptInfo
      ..rangeDown = rangeDown ?? this.rangeDown
      ..rangeUp = rangeUp ?? this.rangeUp
      ..reserves = reserves ?? this.reserves
      ..riskObjectId = riskObjectId ?? this.riskObjectId
      ..startDate = startDate ?? this.startDate
      ..storeTypeDicId = storeTypeDicId ?? this.storeTypeDicId
      ..storeTypeDicIdLabel = storeTypeDicIdLabel ?? this.storeTypeDicIdLabel
      ..tankTypeDicId = tankTypeDicId ?? this.tankTypeDicId
      ..tankTypeDicIdLabel = tankTypeDicIdLabel ?? this.tankTypeDicIdLabel
      ..targetCode = targetCode ?? this.targetCode
      ..targetName = targetName ?? this.targetName
      ..targetType = targetType ?? this.targetType
      ..temperatureMax = temperatureMax ?? this.temperatureMax
      ..temperatureMin = temperatureMin ?? this.temperatureMin
      ..temperatureTypeDicId = temperatureTypeDicId ?? this.temperatureTypeDicId
      ..temperatureTypeDicIdLabel = temperatureTypeDicIdLabel ?? this.temperatureTypeDicIdLabel
      ..thresholdDown = thresholdDown ?? this.thresholdDown
      ..thresholdDown2 = thresholdDown2 ?? this.thresholdDown2
      ..thresholdUp = thresholdUp ?? this.thresholdUp
      ..thresholdUp2 = thresholdUp2 ?? this.thresholdUp2
      ..unit = unit ?? this.unit
      ..updateBy = updateBy ?? this.updateBy
      ..updateById = updateById ?? this.updateById
      ..updateDate = updateDate ?? this.updateDate
      ..useDate = useDate ?? this.useDate;
  }
}

GetRiskObjectByIdEquipVOListDeviceDetectionList $GetRiskObjectByIdEquipVOListDeviceDetectionListFromJson(Map<String, dynamic> json) {
  final GetRiskObjectByIdEquipVOListDeviceDetectionList getRiskObjectByIdEquipVOListDeviceDetectionList = GetRiskObjectByIdEquipVOListDeviceDetectionList();
  final String? checkResult = jsonConvert.convert<String>(json['checkResult']);
  if (checkResult != null) {
    getRiskObjectByIdEquipVOListDeviceDetectionList.checkResult = checkResult;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    getRiskObjectByIdEquipVOListDeviceDetectionList.createBy = createBy;
  }
  final String? createById = jsonConvert.convert<String>(json['createById']);
  if (createById != null) {
    getRiskObjectByIdEquipVOListDeviceDetectionList.createById = createById;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    getRiskObjectByIdEquipVOListDeviceDetectionList.createDate = createDate;
  }
  final String? deleted = jsonConvert.convert<String>(json['deleted']);
  if (deleted != null) {
    getRiskObjectByIdEquipVOListDeviceDetectionList.deleted = deleted;
  }
  final String? detectionPerson = jsonConvert.convert<String>(json['detectionPerson']);
  if (detectionPerson != null) {
    getRiskObjectByIdEquipVOListDeviceDetectionList.detectionPerson = detectionPerson;
  }
  final String? detectionTime = jsonConvert.convert<String>(json['detectionTime']);
  if (detectionTime != null) {
    getRiskObjectByIdEquipVOListDeviceDetectionList.detectionTime = detectionTime;
  }
  final String? deviceId = jsonConvert.convert<String>(json['deviceId']);
  if (deviceId != null) {
    getRiskObjectByIdEquipVOListDeviceDetectionList.deviceId = deviceId;
  }
  final String? filePath = jsonConvert.convert<String>(json['filePath']);
  if (filePath != null) {
    getRiskObjectByIdEquipVOListDeviceDetectionList.filePath = filePath;
  }
  final List<dynamic>? filePathList = (json['filePathList'] as List<dynamic>?)?.map(
          (e) => e).toList();
  if (filePathList != null) {
    getRiskObjectByIdEquipVOListDeviceDetectionList.filePathList = filePathList;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    getRiskObjectByIdEquipVOListDeviceDetectionList.id = id;
  }
  final String? notes = jsonConvert.convert<String>(json['notes']);
  if (notes != null) {
    getRiskObjectByIdEquipVOListDeviceDetectionList.notes = notes;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    getRiskObjectByIdEquipVOListDeviceDetectionList.updateBy = updateBy;
  }
  final String? updateById = jsonConvert.convert<String>(json['updateById']);
  if (updateById != null) {
    getRiskObjectByIdEquipVOListDeviceDetectionList.updateById = updateById;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    getRiskObjectByIdEquipVOListDeviceDetectionList.updateDate = updateDate;
  }
  return getRiskObjectByIdEquipVOListDeviceDetectionList;
}

Map<String, dynamic> $GetRiskObjectByIdEquipVOListDeviceDetectionListToJson(GetRiskObjectByIdEquipVOListDeviceDetectionList entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['checkResult'] = entity.checkResult;
  data['createBy'] = entity.createBy;
  data['createById'] = entity.createById;
  data['createDate'] = entity.createDate;
  data['deleted'] = entity.deleted;
  data['detectionPerson'] = entity.detectionPerson;
  data['detectionTime'] = entity.detectionTime;
  data['deviceId'] = entity.deviceId;
  data['filePath'] = entity.filePath;
  data['filePathList'] = entity.filePathList;
  data['id'] = entity.id;
  data['notes'] = entity.notes;
  data['updateBy'] = entity.updateBy;
  data['updateById'] = entity.updateById;
  data['updateDate'] = entity.updateDate;
  return data;
}

extension GetRiskObjectByIdEquipVOListDeviceDetectionListExtension on GetRiskObjectByIdEquipVOListDeviceDetectionList {
  GetRiskObjectByIdEquipVOListDeviceDetectionList copyWith({
    String? checkResult,
    String? createBy,
    String? createById,
    String? createDate,
    String? deleted,
    String? detectionPerson,
    String? detectionTime,
    String? deviceId,
    String? filePath,
    List<dynamic>? filePathList,
    String? id,
    String? notes,
    String? updateBy,
    String? updateById,
    String? updateDate,
  }) {
    return GetRiskObjectByIdEquipVOListDeviceDetectionList()
      ..checkResult = checkResult ?? this.checkResult
      ..createBy = createBy ?? this.createBy
      ..createById = createById ?? this.createById
      ..createDate = createDate ?? this.createDate
      ..deleted = deleted ?? this.deleted
      ..detectionPerson = detectionPerson ?? this.detectionPerson
      ..detectionTime = detectionTime ?? this.detectionTime
      ..deviceId = deviceId ?? this.deviceId
      ..filePath = filePath ?? this.filePath
      ..filePathList = filePathList ?? this.filePathList
      ..id = id ?? this.id
      ..notes = notes ?? this.notes
      ..updateBy = updateBy ?? this.updateBy
      ..updateById = updateById ?? this.updateById
      ..updateDate = updateDate ?? this.updateDate;
  }
}

GetRiskObjectByIdEquipVOListFilePath $GetRiskObjectByIdEquipVOListFilePathFromJson(Map<String, dynamic> json) {
  final GetRiskObjectByIdEquipVOListFilePath getRiskObjectByIdEquipVOListFilePath = GetRiskObjectByIdEquipVOListFilePath();
  return getRiskObjectByIdEquipVOListFilePath;
}

Map<String, dynamic> $GetRiskObjectByIdEquipVOListFilePathToJson(GetRiskObjectByIdEquipVOListFilePath entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  return data;
}

extension GetRiskObjectByIdEquipVOListFilePathExtension on GetRiskObjectByIdEquipVOListFilePath {
}

GetRiskObjectByIdObjectChildren $GetRiskObjectByIdObjectChildrenFromJson(Map<String, dynamic> json) {
  final GetRiskObjectByIdObjectChildren getRiskObjectByIdObjectChildren = GetRiskObjectByIdObjectChildren();
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    getRiskObjectByIdObjectChildren.id = id;
  }
  final String? name = jsonConvert.convert<String>(json['name']);
  if (name != null) {
    getRiskObjectByIdObjectChildren.name = name;
  }
  final bool? isExpand = jsonConvert.convert<bool>(json['isExpand']);
  if (isExpand != null) {
    getRiskObjectByIdObjectChildren.isExpand = isExpand;
  }
  final List<GetRiskObjectByIdObjectChildren>? objectChildren = (json['objectChildren'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<GetRiskObjectByIdObjectChildren>(e) as GetRiskObjectByIdObjectChildren).toList();
  if (objectChildren != null) {
    getRiskObjectByIdObjectChildren.objectChildren = objectChildren;
  }
  return getRiskObjectByIdObjectChildren;
}

Map<String, dynamic> $GetRiskObjectByIdObjectChildrenToJson(GetRiskObjectByIdObjectChildren entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['name'] = entity.name;
  data['isExpand'] = entity.isExpand;
  data['objectChildren'] = entity.objectChildren?.map((v) => v.toJson()).toList();
  return data;
}

extension GetRiskObjectByIdObjectChildrenExtension on GetRiskObjectByIdObjectChildren {
  GetRiskObjectByIdObjectChildren copyWith({
    String? id,
    String? name,
    bool? isExpand,
    List<GetRiskObjectByIdObjectChildren>? objectChildren,
  }) {
    return GetRiskObjectByIdObjectChildren()
      ..id = id ?? this.id
      ..name = name ?? this.name
      ..isExpand = isExpand ?? this.isExpand
      ..objectChildren = objectChildren ?? this.objectChildren;
  }
}
